package com.woniu.goodsservice.service;

import com.woniu.goodsservice.dto.AuctionDTO;
import com.woniu.goodsservice.dto.AuctionDataDTO;
import com.woniu.goodsservice.entity.Auction;
import java.util.List;

public interface AuctionService {

    Auction queryById(Integer id);

    List<Auction> queryAllByLimit(int offset, int limit);
    
    List<Auction> findAll();
    Auction insert(Auction auction);

    Auction update(Auction auction);

    boolean deleteById(Integer id);

    List<Auction> findGoodsByPage(Integer currentPage, Integer pageSize);


    List<AuctionDataDTO> selectAuctionDataList(Integer currentPage, Integer pageSize);
}